<template>
  <div class="config-form">
    <FormHeader v-bind="$attrs"></FormHeader>
    <FormTable ref="formTable" :tableConfig="tableConfig"></FormTable>
  </div>
</template>

<script>
import FormHeader from '@comp/ConfigForm/FormHeader.vue'
import FormTable from '@comp/ConfigForm/FormTable.vue'
export default {
  name: 'config-form',
  inheritAttrs: false,
  props: {
    tableConfig: {
      type: Object,
      default: () => {}
    }
  },
  components: {
    FormTable,
    FormHeader
  },
  methods: {
    getTableVm () {
      return this.$refs.formTable.getTable()
    }
  }
}
</script>

<style scoped>

</style>
